#!/bin/bash
###
 # @Author: kason199 727491988@qq.com
 # @Date: 2025-01-09 14:30:18
 # @LastEditors: kason199 727491988@qq.com
 # @LastEditTime: 2025-01-09 14:34:20
 # @FilePath: \zhxiangfeng\build_all_apk.sh
 # @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
### 

# 定义渠道列表
flavors=("defaultre" "googleplay" "huawei" "xiaomi" "oppo" "vivo")

# 遍历渠道并打包
for flavor in "${flavors[@]}"
do
    echo "Building $flavor..."
    flutter build apk --release --flavor $flavor
done

echo "All flavors built successfully!"